﻿@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
    <div class="bot_main">
        <ul>
            <li class="ico_1" onclick="window.location.href='@Url.Action("index","home",routeValues: new { Area="Member"})'" style="width:25%"><span class="ico"><img src="~/Content/img/1.png" /></span><span class="txt">发布文章</span></li>
            <li class="ico_2" onclick="window.location.href='@Url.Action("article","home",routeValues: new { Area="Member"})'" style="width:25%"><span class="ico"><img src="~/Content/img/2.png" /></span><span class="txt">文章列表</span></li>
            <li class="ico_3" onclick="window.location.href='@Url.Action("index","ad",routeValues: new { Area="Member"})'" style="width:25%"><span class="ico"><img src="~/Content/img/2.png" /></span><span class="txt">广告管理</span></li>
            <li class="ico_4" id="umoreserver" onclick="Show_Hidden(tr1)" style="width:25%">
                <span class="ico"><img src="~/Content/img/4.png" /></span><span class="txt">会员服务</span>
                <ul id="tr1">
                    <li><a href="@Url.Action("logout","home",routeValues: new { Area="Member"})">退出登录</a></li>
                    <li><a href="#R">操作介绍</a></li>
                    <li><a href="user.php">修改密码</a></li>
                </ul>
            </li>
        </ul>
    </div>
}
else
{
    <div class="bot_main">
        <ul>
            <li class="ico_1" onclick="window.location.href='@Url.Action("login","home",routeValues: new { Area="Member"})'" style="width:25%"><span class="ico"><img src="~/Content/img/1.png" /></span><span class="txt">用户登录</span></li>
            <li class="ico_2" onclick="window.location.href='@Url.Action("reg","home",routeValues: new { Area="Member"})'" style="width:25%"><span class="ico"><img src="~/Content/img/2.png" /></span><span class="txt">用户注册</span></li>
            <li class="ico_3" onclick="window.location.href='@Url.Action("helper","home",routeValues: new { Area="Member"})'" style="width:25%"><span class="ico"><img src="~/Content/img/2.png" /></span><span class="txt">帮助支持</span></li>
            <li class="ico_4" id="umoreserver" onclick="Show_Hidden(tr1)" style="width:25%">
                <span class="ico"><img src="~/Content/img/4.png" /></span><span class="txt">服务中心</span>
                <ul id="tr1">
                    <li><a href="">功能开通</a></li>
                    <li><a href="">联系客服</a></li>
                </ul>
            </li>
        </ul>
    </div>
}
@*<div class="apply" id="search" style="display:none">
    <p>搜索信息</p>
    <form action="list.php" method="post" id="searchForm" name="searchForm">
        <dl class="clearfix">
            <dd>&nbsp;</dd>
            <dd><input type="text" class="input_txt" id="zpname" value="" name="zpname" placeholder="请输入搜索关键字"></dd>
        </dl>
        <div class="btn_box">
            <input type="submit" name="signup" class="button" value="确定" style="width:49%;"><input type="button" name="signup" class="button" value="取消" style="width:49%;margin-left:2%" onclick="get_search_box()">
        </div>
    </form>
</div>*@
<script type="text/javascript">
            function get_search_box() {
                if (document.getElementById('search').style.display == 'none') {
                    document.getElementById('search').style.display = "block";
                    document.getElementById('apply').style.display = "none";
                } else {
                    document.getElementById('search').style.display = "none";
                    document.getElementById('apply').style.display = "block";
                }
            }
            function Show_Hidden(trid) {
                if (trid.style.display == "block") {
                    trid.style.display = 'none';
                } else {
                    trid.style.display = 'block';
                }
            }
</script>